bool judgeCircle(char* moves) {
    int num = strlen(moves);
    int arr[4] = { 0,0,0,0 };
    for (int i = 0; i < num; i++)
    {
        switch (moves[i])
        {
        case 'R':
            arr[0] += 1;
            break;
        case 'L':
            arr[1] += 1;
            break;
        case 'U':
            arr[2] += 1;
            break;
        case 'D':
            arr[3] += 1;
            break;

        }
    }
    if ((arr[0] - arr[1]) == 0 && (arr[2] - arr[3]) == 0)
    {
        return true;
    }
    return false;
}